def mymin(list):
    smallest = None
    for value in list:
        if smallest is None or value < smallest:
            smallest = value

    return smallest


try:
    list = []
    while True:
        num = input('Enter a number: \n')
        if num == 'done':
            break

        list.append(float(num))

    print('The total is', sum(list))
    print('The count is', len(list))
    print('The maxinum is', max(list))
    print('The mininum is', min(list))
    print('By using mymin, The mininum is', mymin(list))
    # print(type(None))   # <class NoneType>
except Exception as e:
    print('Please enter a num')
